var img = "<div id=\"mask\" style=\"width: 100%;height: 100%;position: absolute;top: 0px;background-color: white;\"><img src=\"/public/images/loaders/loader6.gif\" style=\"margin-top: 23%;margin-left: 50%;z-index: 999;\" alt=\"\"></div>"
/**
 * 获取当前url
 * @returns {String}
 */
function getUrl(){
	return window.location.protocol+"//"+window.location.host;
}

/**
 * 局部刷新
 * @param url
 */
function ajaxHtml(url){
	jQuery('#main *').unbind();
	jQuery("#main").html(jQuery("#main").html()+img);
	jQuery.ajax({
		url:getUrl()+"/"+url,
		type:"post",
		success:function(data){
			jQuery("#main").html(data);
		},
		error:function(data){
			jQuery("#mask").empty();
		}
	})
}